import instance from './axios';

export const getRequest = (url, params) => {
  return instance.get(url, {
    params,
  });
};

export const postRequest = (url, data) => {
  return instance.post(url, data);
};

export const putRequest = (url, data) => {
  return instance.put(url, data);
};

export const delRequest = (url) => {
  return instance.delete(url);
};